let Product = require('../../db/productSchma');

module.exports = async(req, res) => {
    var relData = await Product.findOne({ "_id": req.query.id });
    res.render('./product/editproduct.ejs', { productData: relData });
}